<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Insert title here</title>
</head>
<body>
	<script type="text/javascript">
	    window.onload =  function(){
	    	if(typeof(WeixinJSBridge)!="undefined"){
                WeixinJSBridge.call('closeWindow');
            }else{
		    	var userAgent = navigator.userAgent;
		    	if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") !=-1 || userAgent.indexOf("Safari") != -1) {
	    		   window.location.href="about:blank";
	    		   window.close();
	    		} else {
	    		   window.opener = null;
	    		   window.open("", "_self");
	    		   window.close();
	    		}
            }
	    }
	</script>

</body>
</html>